package com.kede.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName sy_zhi_order_goods_list
 */
@TableName(value ="sy_zhi_order_goods_list")
@Data
public class ZhiOrderGoodsListDomain implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 门店id
     */
    @TableField(value = "store_id")
    private Integer storeId;

    /**
     * 订单编号
     */
    @TableField(value = "order_sn")
    private String orderSn;

    /**
     * 缩略图
     */
    @TableField(value = "image")
    private String image;

    /**
     * 物品分类名称
     */
    @TableField(value = "cate_name")
    private String cateName;

    /**
     * 置换商品图片
     */
    @TableField(value = "images")
    private String images;

    /**
     * 置换商品信息
     */
    @TableField(value = "message")
    private String message;

    /**
     * 积分
     */
    @TableField(value = "score")
    private BigDecimal score;

    /**
     * 店铺回收金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 置换状态0待确认1置换中2已完成3已拒绝
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 拒绝原因
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 区代理id
     */
    @TableField(value = "qu_id")
    private Integer quId;

    /**
     * 是代理id
     */
    @TableField(value = "shi_id")
    private Integer shiId;

    /**
     * 是否卖出
     */
    @TableField(value = "is_sell")
    private Integer isSell;

    /**
     * 置换时间
     */
    @TableField(value = "createtime")
    private Integer createtime;

    /**
     * 默认用户价格
     */
    @TableField(value = "default_user_money")
    private BigDecimal defaultUserMoney;

    /**
     * 默认用户德币
     */
    @TableField(value = "default_user_debi")
    private BigDecimal defaultUserDebi;

    /**
     * 默认门店价格
     */
    @TableField(value = "default_store_money")
    private BigDecimal defaultStoreMoney;

    /**
     * 默认区代价格
     */
    @TableField(value = "default_qu_money")
    private BigDecimal defaultQuMoney;

    /**
     * 物品包裹状态
     */
    @TableField(value = "good_package_status")
    private Integer goodPackageStatus;

    /**
     * 默认市代价格
     */
    @TableField(value = "default_shi_money")
    private BigDecimal defaultShiMoney;

    @TableField(value = "weight")
    private BigDecimal weight;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ZhiOrderGoodsListDomain other = (ZhiOrderGoodsListDomain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
            && (this.getOrderSn() == null ? other.getOrderSn() == null : this.getOrderSn().equals(other.getOrderSn()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
            && (this.getCateName() == null ? other.getCateName() == null : this.getCateName().equals(other.getCateName()))
            && (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages()))
            && (this.getMessage() == null ? other.getMessage() == null : this.getMessage().equals(other.getMessage()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()))
            && (this.getQuId() == null ? other.getQuId() == null : this.getQuId().equals(other.getQuId()))
            && (this.getShiId() == null ? other.getShiId() == null : this.getShiId().equals(other.getShiId()))
            && (this.getIsSell() == null ? other.getIsSell() == null : this.getIsSell().equals(other.getIsSell()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        result = prime * result + ((getOrderSn() == null) ? 0 : getOrderSn().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        result = prime * result + ((getCateName() == null) ? 0 : getCateName().hashCode());
        result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode());
        result = prime * result + ((getMessage() == null) ? 0 : getMessage().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
        result = prime * result + ((getQuId() == null) ? 0 : getQuId().hashCode());
        result = prime * result + ((getShiId() == null) ? 0 : getShiId().hashCode());
        result = prime * result + ((getIsSell() == null) ? 0 : getIsSell().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", storeId=").append(storeId);
        sb.append(", orderSn=").append(orderSn);
        sb.append(", image=").append(image);
        sb.append(", cateName=").append(cateName);
        sb.append(", images=").append(images);
        sb.append(", message=").append(message);
        sb.append(", score=").append(score);
        sb.append(", money=").append(money);
        sb.append(", status=").append(status);
        sb.append(", reason=").append(reason);
        sb.append(", quId=").append(quId);
        sb.append(", shiId=").append(shiId);
        sb.append(", isSell=").append(isSell);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}